package com.linkallcloud.core.www;

import java.time.Duration;

public interface ITokenBox {
    
    <U extends ISimpleUser> String put(U su);
    <U extends ISimpleUser> String put(U su, Duration timeout);
    
    <U extends ISimpleUser> U get(String token, Class<U> uclass);
    
    void remove(String token);
    
    boolean exist(String token);

}
